#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>

int main() {
    char *name = "/sys/bus/ldd/version";
    char buf[500];
    int fd;
    int size;
    fd = open(name, O_RDONLY);
    printf("fd:%d ",fd);
    size = read(fd,buf,sizeof(buf));
    printf("size:%d ",size);
    printf("%s",buf);
    close(fd);
    return -1;
}
